/**
 * @author xinjie.txt
 * @time: 2020年7月9日 下午10:55:08
 */
package com.jiepu.exercise.primary.chapter5.exercise6;

/**
 * @Description:
 * @author xinjie.txt
 */
public class Student {

	private int id;					// 学号
	private String name;
	private int age;
	private String gender;
	private String account; 		// 账号
	private String password; 		// 密码
	private Teacher teacher; 			// 辅导老师

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the age
	 */
	public int getAge() {
		return age;
	}

	/**
	 * @param age
	 *            the age to set
	 */
	public void setAge(int age) {
		this.age = age;
	}

	/**
	 * @return the gender
	 */
	public String getGender() {
		return gender;
	}

	/**
	 * @param gender
	 *            the gender to set
	 */
	public void setGender(String gender) {
		this.gender = gender;
	}

	/**
	 * @return the account
	 */
	public String getAccount() {
		return account;
	}

	/**
	 * @param account
	 *            the account to set
	 */
	public void setAccount(String account) {
		this.account = account;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password
	 *            the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	

	/**
	 * @return the teacher
	 */
	public Teacher getTeacher() {
		return teacher;
	}

	/**
	 * @param teacher the teacher to set
	 */
	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	/**
	 * 
	 */
	public Student() {
		super();
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param id
	 * @param name
	 * @param age
	 * @param gender
	 * @param account
	 * @param password
	 * @param tutor
	 */
	public Student(int id, String name,  String gender,int age, String account, String password, Teacher teacher) {
		super();
		this.id = id;
		this.name = name;
		this.age = age;
		this.gender = gender;
		this.account = account;
		this.password = password;
		this.teacher = teacher;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "id: "+id+"\tname: "+name+"\tage: "+age+"\tgender: "+gender+"\taccount"+account+"\tpassword: "+password+"\tteacher : "+teacher.getName();
	}

}
